home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / text / hyper / hsc_source.lha / source / Makefile.dodl < prev    next >
Makefile  |  1996-09-30  |  6KB  |  167 lines

  1. #
  2. # Makefile for hsc ("html sucks completely")
  3. #
  4. # Copyright (C) 1994,95,96  Thomas Aglassinger
  5. #
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program; if not, write to the Free Software
  18. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19. #
  20. #====================================================================
  21. #
  22. # This Makefile should work on most Unixoid systems, but no 
  23. # optimisation is performed. Feel free to fool around with the
  24. # compiler-flags.
  25. #
  26. # (1) Use "make -f Makefile.dodl" to compile.
  27. #
  28. # (2) Copy "hsc/hsc" and "hscdepp/hscdepp" anywhere in your 
  29. #     search-path.
  30. #
  31. # (3) Use "make -f Makefile.dodl sterile" for a total cleanup. Maybe 
  32. #     you also have to pass an option to make to ignore the 
  33. #     return-code of the "rm"-command; usually, this is "-i".
  34. #
  35. # (4) Read the docs, section "Installation" what to do with 
  36. #     "hsc.prefs".
  37. #
  38. # IMPORTANT: Don't forget to hit the return-key after typing commands
  39. #            in the shell!
  40. #
  41.  
  42. #------------------------------------------------
  43. # this one should always work
  44. #
  45. CC    = cc
  46. CFLAGS    =
  47.  
  48. #------------------------------------------------
  49. # this one should also work and even optimise
  50. #
  51. #CC    = cc
  52. #CFLAGS    = -s -O
  53.  
  54. #------------------------------------------------
  55. # works with gcc
  56. #
  57. #CC    = gcc
  58. #CFLAGS = -s -O2
  59.  
  60. #--------------------------------------------------------------------
  61. # avoid fooling around below this line
  62. #--------------------------------------------------------------------
  63.  
  64. SYS    = -DUNIX
  65. COMP    = $(CC) -o $@ $(SYS) -I. -c
  66. LINK    = $(CC) -o $@ $(SYS) -I.
  67. MOVE    = mv
  68. DELETE    = rm -f
  69.  
  70. #
  71. # compile all tools
  72. #
  73. all : hsc/all_hsc hscdepp/all_hscd
  74.  
  75. # implict rule for object-files
  76. # (old-style implicit rule)
  77. .c.o :
  78.     $(COMP) $*.c $(CFLAGS)
  79.  
  80. hsc/all_hsc : hsclib/all_hscl.o hscprj/all_hscp.o hsc/all_hsc.o \
  81.         ugly/all_ugly.o
  82.     $(LINK) hsc/all_hsc.o hsclib/all_hscl.o hscprj/all_hscp.o \
  83.         ugly/all_ugly.o $(CMODE)
  84.     $(MOVE) hsc/all_hsc hsc/hsc
  85.  
  86. hscdepp/all_hscd : hscdepp/all_hscd.o hsclib/all_hscl.o hscprj/all_hscp.o \
  87.         ugly/all_ugly.o
  88.     $(LINK) hscdepp/all_hscd.o hsclib/all_hscl.o hscprj/all_hscp.o \
  89.         ugly/all_ugly.o $(CMODE)
  90.     $(MOVE) hscdepp/all_hscd hscdepp/hscdepp
  91.  
  92. #
  93. # cleanup - remove all objects and executables
  94. #
  95. clean :
  96.     $(DELETE) hsc/*.o
  97.     $(DELETE) hscdepp/*.o
  98.     $(DELETE) hsclib/*.o
  99.     $(DELETE) hscprj/*.o
  100.     $(DELETE) ugly/*.o
  101.  
  102. all_clean :
  103.     $(DELETE) ugly/all_ugly.o
  104.     $(DELETE) hsclib/all_hscl.o
  105.     $(DELETE) hsc/all_hsc.o
  106.     $(DELETE) hsc/all_hsc
  107.     $(DELETE) hscdepp/all_hscd.o
  108.     $(DELETE) hscdepp/all_hscd
  109.  
  110. sterile : clean all_clean
  111.     $(DELETE) hsc/hsc
  112.     $(DELETE) hscdepp/hscdepp
  113.  
  114. #
  115. # the dependencies below are created using `MkDepend' by Lars Düning,
  116. # available from amient:dev/c/MkDepend.lha
  117. #
  118.  
  119. # --- DO NOT MODIFY THIS LINE -- AUTO-DEPENDS FOLLOW ---
  120. hsc/all_hsc.o : hsc/hsc.c hsc/callback.c hsc/output.c hsc/args.c \
  121.     hsc/status.c hsc/global.c hsc/hsc_rev.h hsc/status.h hsc/output.h \
  122.     hsc/callback.h hsc/args.h ugly/returncd.h ugly/prginfo.h ugly/uargs.h \
  123.     hscprj/project.h hsc/global.h ugly/fname.h ugly/infile.h ugly/utypes.h \
  124.     ugly/umemory.h ugly/utypes.h hsc/hdebug.h ugly/ustring.h ugly/umemory.h \
  125.     ugly/expstr.h ugly/dllist.h hsclib/hsclib.h ugly/expstr.h ugly/dllist.h \
  126.     ugly/udebug.h hsclib/linit.h hsclib/include.h hsclib/inc_base.h \
  127.     hsclib/lstatus.h hsclib/lmessage.h hsclib/hscprc.h hsclib/tag.h \
  128.     hsclib/entity.h hsclib/attrib.h hscprj/document.h hsclib/msgid.h \
  129.     hsclib/ldebug.h
  130.  
  131. hscdepp/all_hscd.o : hscdepp/hscdepp.c hscdepp/hscdepp_rev.h \
  132.     hscprj/project.h hscprj/document.h ugly/returncd.h ugly/prginfo.h \
  133.     ugly/uargs.h ugly/infile.h ugly/expstr.h ugly/dllist.h ugly/ustring.h \
  134.     ugly/umemory.h ugly/utypes.h hsclib/ldebug.h ugly/umemory.h \
  135.     ugly/utypes.h ugly/dllist.h ugly/expstr.h ugly/udebug.h
  136.  
  137. hsclib/all_hscl.o : hsclib/tag_macr.c hsclib/tag_if.c hsclib/tag_hsc.c \
  138.     hsclib/tag_a.c hsclib/tag_misc.c hsclib/size.c hsclib/linit.c \
  139.     hsclib/include.c hsclib/parse.c hsclib/deftag.c hsclib/defattr.c \
  140.     hsclib/posteval.c hsclib/eval.c hsclib/uri.c hsclib/skip.c \
  141.     hsclib/input.c hsclib/lstatus.c hsclib/hscprc.c hsclib/idref.c \
  142.     hsclib/attrib.c hsclib/tag.c hsclib/entity.c hsclib/lmessage.c \
  143.     ugly/ustring.h ugly/infile.h ugly/umemory.h ugly/expstr.h ugly/dllist.h \
  144.     ugly/utypes.h hsclib/msgid.h hsclib/ldebug.h hsclib/parse.h \
  145.     hsclib/include.h hsclib/deftag.h hsclib/defattr.h hsclib/inc_tagcb.h \
  146.     hsclib/skip.h hsclib/eval.h hsclib/tag_if.h hsclib/tag_macr.h \
  147.     hsclib/uri.h ugly/fname.h hscprj/document.h hsclib/inc_base.h \
  148.     hsclib/tag_misc.h hsclib/tag_hsc.h hsclib/tag_a.h hsclib/input.h \
  149.     hsclib/size.h hscprj/project.h hsclib/posteval.h hsclib/idref.h \
  150.     ugly/returncd.h hsclib/tag.h hsclib/entity.h ugly/utypes.h \
  151.     ugly/dllist.h ugly/expstr.h ugly/udebug.h hsclib/hscprc.h \
  152.     hsclib/lstatus.h hsclib/lmessage.h hsclib/attrib.h
  153.  
  154. hscprj/all_hscp.o : hscprj/writeprj.c hscprj/readprj.c hscprj/project.c \
  155.     hscprj/document.c hscprj/project.h hscprj/document.h ugly/ustring.h \
  156.     ugly/infile.h ugly/umemory.h ugly/expstr.h ugly/dllist.h ugly/utypes.h \
  157.     hscprj/pdefs.h hscprj/pdebug.h hsclib/ldebug.h ugly/utypes.h \
  158.     ugly/dllist.h ugly/expstr.h ugly/udebug.h
  159.  
  160. ugly/all_ugly.o : ugly/prginfo.c ugly/infile.c ugly/uargs.c ugly/dllist.c \
  161.     ugly/fname.c ugly/expstr.c ugly/ustring.c ugly/umemory.c ugly/udebug.h \
  162.     ugly/utypes.h ugly/umemory.h ugly/infile.h ugly/fname.h ugly/ustring.h \
  163.     ugly/expstr.h ugly/args_hlp.c ugly/args_prp.c ugly/args_set.c \
  164.     ugly/args_fre.c ugly/uargs.h ugly/dllist.h
  165.  
  166. # --- DO NOT MODIFY THIS LINE -- AUTO-DEPENDS PRECEDE ---
  167.